package geektime.spring.springbucks.mapper;

import geektime.spring.springbucks.model.Coffee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xi.chen
 * @create 2022-11-19 11:56
 * @description： TODO
 * @modifiedBy：
 * @version: 1.0
 */
@Mapper
public interface CoffeeMapper {
    void createCoffee(Coffee coffee);

    void updateCoffeeById(Coffee coffee);

    void deleteCoffeeById(@Param(value="id")long id);

    Coffee findCoffeeById(@Param(value="id")long id);

    List<Coffee> findAll();
}
